import request from '@/util/ajax.js'

export function login(reqData) {
  return request({
    url: '/back_front/validate/login', // 修改代码
    method: 'post',
    data: reqData
  })
}

export function getInfo(token) {
  return request({
    url: '/back_front/validate/info', // 修改代码
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: '/back_front/validate/logout',
    method: 'delete'
  })
}
